 <div class="pageContent">

<form method="post" action="{:U($module_name.'/update')}" class="pageForm required-validate" onsubmit="return validateCallback(this,dialogAjaxDone);">
	<volist name="lista" id="vo">
		<div class="pageFormContent" layoutH="56" align="center" rel="{$vo['id']}">
		
			<dl>
				<dt><label>名称：</label></dt>
				<dd>
					{$vo['name']}
					
					<input name="id" type="hidden" value="{$vo['id']}"/>
					
				</dd>
			</dl>

			<dl>
				<dt><label>数量：</label></dt>
				<dd>
					<input name="amount" class="required" type="text" value="{$vo['amount']}" size="30" alt="{$vo['amount']}"/>
					<input name="type" type="hidden" value="0"/>
				</dd>
			</dl>
			
			<dl>
				<dt><label>积分：</label></dt>
				<dd>
					<input name="point" class="required" type="text" value="{$vo['point']}" size="30" alt="{$vo['point']}"/>
					<input name="type" type="hidden" value="0"/>
				</dd>
			</dl>
			<dl>
				<dt><label>是否显示：</label></dt>
				<dd>
					
					<select name='status'>
						<option value='1' {if $vo['status']==1} selected = "selected"{/if}>显示</option>
						<option value='0' {if $vo['status']==0} selected = "selected"{/if}>不显示</option>
					</select>
				</dd>
			</dl>
			<dl>
				<dt><label>开始时间：</label></dt>
				<dd>
					<input name="starttime" class="required date"  [dateFmt="yyyy-MM-dd H:m:s"] [minDate="{%y-80}"] [maxDate="{%y+5}"] type="text" value="{$vo['starttime']|date='Y-m-d',###}" size="30" alt="{$vo['starttime']}"/>
					<input name="type" type="hidden" value="0"/>
				</dd>
			</dl>
			<dl>
				<dt><label>结束时间：</label></dt>
				<dd>
					<input name="endtime" class="required date"  [dateFmt="yyyy-MM-dd H:m:s"] [minDate="{%y-80}"] [maxDate="{%y+5}"] type="text" value="{$vo['endtime']|date='Y-m-d',###}" size="30" alt="{$vo['endtime']}"/>
					<input name="type" type="hidden" value="0"/>
				</dd>
			</dl>
			
			<dl>
				<dt><label>限制时间单位：</label></dt>
				<dd>
					<select name='period' >
					
						<option value='d' {if $vo['period']=='d'} selected = "selected"{/if}>天</option>
						<option value='w' {if $vo['period']=='w'} selected = "selected"{/if}>周</option>
						<option value='m' {if $vo['period']=='m'} selected = "selected"{/if}>月</option>
					</select>
				</dd>
			</dl>
			<dl>
				<dt><label>其他用户是否可买：</label></dt>
				<dd>
					
					<select name='buy'>
						<option value='1'>可买</option>
						<option value='0'>不可买</option>
					</select>
					<input name="type" type="hidden" value="0"/>
				</dd>
			</dl>
		</div>
	</volist>
	<div class="formBar">
		<ul>
			<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
			<li>
				<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
			</li>
		</ul>
	</div>
</form>
</div>